package edu.cmu.vlis.wassup.db;

import java.io.Serializable;

public class UnprocessedAnnouncement implements Serializable{
	private String announcement_id; // primary key
	
	// the date and time when a certain event would happen
	private String start_date="";
	private String end_date="";
	private String start_time="";
	private String end_time="";
	
	// description of an event
	private String description="";
	// the Access information about the event
	private String URL="";
	
	// location address of a certain event
	private String street_address="";
	private String city="";
	private String state="";
	private float latitude;
	private float longitude;
	
	// the subject of an event
	private String event_name="";
	
//	private String sender_id=""; // sender_id is an e-mail address
	private User sender;
	
	/**
	 * Constructor takes primary keys as arguments
	 * @param announcement_id
	 */
	public UnprocessedAnnouncement(String announcement_id) {
		this.announcement_id = announcement_id;
	}

	public void setAnnouncement_id(String announcement_id) {
		this.announcement_id = announcement_id;
	}

	public String getAnnouncement_id() {
		return announcement_id;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public String getDescription() {
		return description;
	}

	public String getStart_date() {
		return start_date;
	}

	public void setStart_date(String start_date) {
		this.start_date = start_date;
	}

	public String getEnd_date() {
		return end_date;
	}

	public void setEnd_date(String end_date) {
		this.end_date = end_date;
	}

	public String getStart_time() {
		return start_time;
	}

	public void setStart_time(String start_time) {
		this.start_time = start_time;
	}

	public String getEnd_time() {
		return end_time;
	}

	public void setEnd_time(String end_time) {
		this.end_time = end_time;
	}

	public String getURL() {
		return URL;
	}

	public void setURL(String url) {
		URL = url;
	}

	public String getStreet_address() {
		return street_address;
	}

	public void setStreet_address(String street_address) {
		this.street_address = street_address;
	}

	public String getCity() {
		return city;
	}

	public void setCity(String city) {
		this.city = city.toUpperCase();
	}

	public String getState() {
		return state;
	}

	public void setState(String state) {
		this.state = state.toUpperCase();
	}

	public float getLatitude() {
		return latitude;
	}

	public void setLatitude(float latitude) {
		this.latitude = latitude;
	}

	public float getLongitude() {
		return longitude;
	}

	public void setLongitude(float longitude) {
		this.longitude = longitude;
	}

//	public String getSender_id() {
//		return sender_id;
//	}
//
//	public void setSender_id(String sender_id) {
//		this.sender_id = sender_id;
//	}
	
	public String getEvent_name() {
		return event_name;
	}

	public User getSender() {
		return sender;
	}

	public void setSender(User sender) {
		this.sender = sender;
	}

	public void setEvent_name(String event_name) {
		this.event_name = event_name;
	}
	
}
